Skip to content

Pass cTWAS weight paths to ctwas_assemble.R through a list file - #1436

Merged
danielnachun merged 2 commits into
StatFunGen:mainfrom
jaempawi:ctwas-weights-list-file
Nov 8, 2026
Merged

danielnachun merged 2 commits into
StatFunGen:mainfrom
jaempawi:ctwas-weights-list-file

Conversation

@jaempawi

@jaempawi jaempawi commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

The cTWAS step of twas_ctwas.ipynb joins every per-gene weight RDS path into one comma-separated --twas-weights argument. On a genome-scale run this exceeds Linux's 128 KB limit for a single argument, so ctwas_assemble.R never starts (exit code 126). For MSBB eQTL weights the argument was 229 KB on chr19 (1,350 genes), and 11 of 22 chromosomes failed this way.

Changes:

  • twas_ctwas.ipynb: write the weight paths to <output>.weights.txt (one per line) and pass that file to --twas-weights.
  • ctwas_assemble.R: --twas-weights also accepts a text file listing the paths. Comma-separated paths still work as before.

Tested on SCC with pecotmr 0.9.5: MSBB eQTL chr19 now writes the 1,350-path list and passes assemble and prior estimation.

jaempawi and others added 2 commits November 7, 2026 16:36
A genome-scale chromosome joins thousands of weight paths into one --twas-weights argument (229 KB on chr19 for MSBB eQTL), past the 128 KB per-argument limit, so the assemble step fails with exit code 126. The notebook now writes the paths to <output>.weights.txt and ctwas_assemble.R accepts a text file listing the paths; comma-separated input still works.
@danielnachun
danielnachun force-pushed the ctwas-weights-list-file branch from 8e147d8 to 395302a Compare November 8, 2026 21:22
@danielnachun
danielnachun merged commit 831ac9f into StatFunGen:main Nov 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants